@index_them_color: #1177e8;
@index_them_text_color: #252525;

*{
    box-sizing: content-box;
}

#index_page {
    line-height: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    min-width: 1280px;
    font-family: PingFangSC-Regular MicrosoftYaHei;
    font-size: 14px;
    color: @index_them_text_color;
    /* font-family: 'Avenir', Helvetica, Arial, sans-serif; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    .index-container {
        width: 1180px;
        margin: 0 auto;
    }

    // 头部
    .index-header {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 60px;
        line-height: 60px;
        &:hover {
            background-color: #141d3b;
        }
        &::after {
            content: '';
            display: block;
            height: 1px;
            width: 100%;
            background-color: #fff;
            opacity: 0.2;
        }
        a {
            display: inline-block;
            vertical-align: middle;
            text-decoration: none;
            text-align: center;
        }
        .index-login-icon {
            width: 205px;
            height: 32px;
            background: url('~@/assets/images/logo.png') no-repeat center
                center;
        }
        .index-login-btn {
            width: 58px;
            height: 28px;
            line-height: 28px;
            border-radius: 4px;
            border: 1px solid #fff;
            color: #fff;
            &:hover {
                background-color: @index_them_color;
                border-color: @index_them_color;
            }
        }
    }

    .index-title {
        text-align: center;
        font-size: 30px;
        line-height: 1.4;
    }

    .index-product {
        background-color: #fff;
        .index-title {
            padding: 61px 0 34px;
        }
        .index-product-tabs {
            width: 1180px;
            margin: 0 auto;
        }
        .index-product-tabs-item {
            box-sizing: border-box;
            width: 33.33333%;
            height: 140px;
            display: inline-block;
            font-size: 18px;
            text-align: center;
            cursor: pointer;
            &.active,
            &:hover {
                color: @index_them_color;
            }
            &.active {
                border-bottom: 2px solid @index_them_color;
            }
        }
        // 图标
        .index-product-icon {
            width: 64px;
            height: 64px;
            display: block;
            margin: 20px auto 15px;
            background-position: center center;
            background-repeat: no-repeat;
        }
        .customs-business-icon {
            background-image: url('~@/assets/images/index/customs_business.png');
        }
        .customs-joint-icon {
            background-image: url('~@/assets/images/index/customs_joint.png');
        }
        .customs-manage-icon {
            background-image: url('~@/assets/images/index/customs_manage.png');
        }
        .product-customs-business {
            &.active,
            &:hover {
                .customs-business-icon {
                    background-image: url('~@/assets/images/index/customs_business_active.png');
                }
            }
        }
        .product-customs-manage {
            &.active,
            &:hover {
                .customs-manage-icon {
                    background-image: url('~@/assets/images/index/customs_manage_active.png');
                }
            }
        }
        .product-customs-joint {
            &.active,
            &:hover {
                .customs-joint-icon {
                    background-image: url('~@/assets/images/index/customs_joint_active.png');
                }
            }
        }
        .product-content {
            background-color: #f7f8fa;
            height: 468px;
            overflow: hidden;
            .index-container {
                height: 100%;
                background-repeat: no-repeat;
                background-position: right center;
            }
        }
        .product-title {
            font-size: 30px;
            line-height: 34px;
            margin-bottom: 22px;
        }
        .product-content-item {
            width: 456px;
            padding-top: 88px;
            p {
                font-size: 18px;
                line-height: 30px;
                & + p {
                    margin-top: 18px;
                }
            }
        }
        // 背景图
        .customs-business-bg {
            background-image: url('~@/assets/images/index/customs_business_bg.png');
        }
        .customs-manage-bg {
            background-image: url('~@/assets/images/index/customs_manage_bg.png');
        }
        .customs-joint-bg {
            background-image: url('~@/assets/images/index/customs_joint_bg.png');
        }
    }

    // 服务方案
    .index-service-plan {
        background: url('~@/assets/images/index/program_bg.png');
        background-size: cover;
        background-attachment: fixed;
        .index-container {
            height: 816px;
        }
        .index-title {
            color: #fff;
            padding: 65px 0 95px;
        }
        .index-plant-content {
            text-align: center;
        }
        .index-plant-content-item {
            width: 290px;
            height: 460px;
            border: 1px solid #e1e1e1;
            display: inline-block;
            vertical-align: top;
            position: relative;
            & + .index-plant-content-item {
                border-left: 0;
            }
        }
        .index-plant {
            width: 290px;
            height: 460px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #fff;
            transition: all 0.2s;
            &:hover {
                z-index: 1;
                width: 330px;
                height: 500px;
                border: 1px solid @index_them_color;
                .index-plant-header {
                    background-color: @index_them_color;
                    color: #fff;
                }
                .plant1_bg {
                    background-image: url('~@/assets/images/index/plant1_active.png');
                }
                .plant2_bg {
                    background-image: url('~@/assets/images/index/plant2_active.png');
                }
                .plant3_bg {
                    background-image: url('~@/assets/images/index/plant3_active.png');
                }
                .plant4_bg {
                    background-image: url('~@/assets/images/index/plant4_active.png');
                }
            }
        }
        .plant1_bg {
            background-image: url('~@/assets/images/index/plant1.png');
        }
        .plant2_bg {
            background-image: url('~@/assets/images/index/plant2.png');
        }
        .plant3_bg {
            background-image: url('~@/assets/images/index/plant3.png');
        }
        .plant4_bg {
            background-image: url('~@/assets/images/index/plant4.png');
        }
        .index-plant-header {
            padding: 120px 0 30px;
            font-weight: 600;
            font-size: 24px;
            line-height: 30px;
            background-color: #f7f8fa;
            background-position: center 35px;
            background-repeat: no-repeat;
        }
        .index-plant-body {
            padding: 20px 30px 0;
            text-align: left;
            li {
                font-size: 18px;
                line-height: 24px;
                position: relative;
                & + li {
                    margin-top: 18px;
                }
                &::before {
                    content: '';
                    width: 10px;
                    height: 10px;
                    background-color: #767884;
                    border-radius: 50%;
                    display: inline-block;
                    margin-right: 8px;
                }
            }
        }
    }

    // 试用产品
    .produc-try-out {
        background-color: #f7f8fa;
        .index-container {
            height: 382px;
            background: url('~@/assets/images/index/try_out.png') no-repeat
                center center;
            background-size: 1440px 382px;
        }
        .index-title {
            padding: 64px 0 45px;
        }
        .produc-try-out-content {
            text-align: center;
            margin-bottom: 44px;
            line-height: 30px;
            font-size: 22px;
        }
        .try-out-btn {
            width: 112px;
            height: 40px;
            margin: 0 auto;
            text-align: center;
            border-radius: 4px;
            border: 1px solid rgba(37, 37, 37, 1);
            font-size: 18px;
            line-height: 40px;
            color: @index_them_text_color;
            display: block;
            text-decoration: none;
            cursor: pointer;
            &:hover {
                color: #fff;
                border-color: @index_them_color;
                background-color: @index_them_color;
            }
        }
    }

    .index-footer {
        background-color: #232a36;
        .index-footer-info {
            height: 202px;
            position: relative;
            &::after {
                content: '';
                display: block;
                position: absolute;
                bottom: 0;
                left: 0;
                height: 1px;
                width: 100%;
                background-color: #fff;
                opacity: 0.2;
            }
            .index-container {
                position: relative;
                height: 100%;
            }
        }
        // 公司信息
        .index-company-info {
            padding-top: 40px;
            p {
                font-size: 13px;
                color: #fff;
                & + p {
                    margin-top: 16px;
                }
            }
            a {
                color: #fff;
                text-decoration: none;
            }
        }
        // 二维码
        .index-qr-code {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13px;
            color: #fff;
            img {
                width: 100px;
                height: 100px;
                display: block;
                margin-bottom: 5px;
            }
            .index-qr-text {
                width: 66px;
                margin: 0 auto;
                line-height: 16px;
            }
        }
        .index-footer-about {
            text-align: center;
            height: 50px;
            line-height: 50px;
            color: #767884;
            font-size: 12px;
            a {
                color: #767884;
                text-decoration: none;
            }
        }
    }

    // 咨询
    .index-advisory {
        position: fixed;
        bottom: 80px;
        right: 35px;
        background: #fff;
        height: 148px;
        width: 48px;
        z-index: 10;
        box-shadow: 0 0 3px 0 hsla(0, 0%, 56%, 0.5);
        cursor: pointer;
        &:hover {
            .index-poptip-content {
                display: block;
            }
        }
        &-icon {
            width: 100%;
            height: 48px;
            display: block;
            background: #0f71e2 url('~@/assets/images/index/message.png')
                no-repeat center center;
        }
        &-content {
            width: 14px;
            padding: 10px 0;
            margin: 0 auto;
            text-align: center;
            i {
                margin: 5px 0;
                display: inline-block;
                width: 4px;
                height: 4px;
                border-radius: 50%;
                background: #152441;
            }
        }
        &-poptip {
            position: absolute;
            right: 100%;
            bottom: 0;
            padding-right: 10px;
        }
        .index-poptip-content {
            display: none;
            box-sizing: border-box;
            width: 220px;
            // height: 276px;
            padding: 10px 10px 10px 25px;
            background-color: #fff;
            box-shadow: 0px 0px 6px 0px rgba(143, 143, 143, 0.5);
            .index-icon {
                width: 15px;
                height: 15px;
                display: inline-block;
                vertical-align: middle;
                margin-right: 10px;
            }
            .index-icon-attention {
                background: url('~@/assets/images/index/attention.png')
                    no-repeat center center;
            }
            .index-icon-tel {
                background: url('~@/assets/images/index/tel.png') no-repeat
                    center center;
            }
            .index-icon-qq {
                background: url('~@/assets/images/index/qq.png') no-repeat
                    center center;
            }
            .index-poptip-title {
                color: #1b294e;
                line-height: 20px;
                margin-top: 10px;
            }
        }
        .index-poptip-qr {
            margin: 2px 0 0 25px;
            img {
                width: 138px;
                height: 138px;
            }
        }
        .index-poptip-tel {
            font-size: 20px;
            color: #1b294e;
            line-height: 28px;
            margin-left: 25px;
            margin-top: 4px;
        }
        a {
            color: #1b294e;
            text-decoration: none;
            &:hover {
                color: @index_them_color;
            }
        }
    }

    // 返回顶部
    .index-backtop {
        position: fixed;
        bottom: 20px;
        z-index: 10;
        right: 35px;
        width: 48px;
        height: 48px;
        background: #fff url('~@/assets/images/index/goback.png') no-repeat
            center center;
        box-shadow: 0 0 3px 0 hsla(0, 0%, 56%, 0.5);
        cursor: pointer;
    }
    // banner轮播图
    .index-banner {
        position: relative;
        background-color: #2e3d76;
        overflow: hidden;
        // 兼容左边颜色不一致
        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(270deg, #232d5b 0%, #232d5b 100%);
        }
        // 渐变背景
        .index-banner-bg {
            width: 1440px;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            right: 0;
            margin: auto;
            background: linear-gradient(
                270deg,
                #2e3d76 0%,
                #4965b9 23%,
                #4965b9 36%,
                #232d5b 100%
            );
        }
        .index-banner-container {
            padding-top: 61px;
        }
    }
    // banner轮播图
    .index-banner-slider {
        height: 420px;
        overflow: hidden;
        position: relative;
        // 指示按钮
        .index-banner-indicators {
            z-index: 2;
            position: absolute;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
        }
        .index-banner-indicator {
            cursor: pointer;
            display: inline-block;
            padding: 12px 4px;
            vertical-align: top;
            &:hover {
                .indicator-btn {
                    opacity: 0.72;
                }
            }
        }
        .index-indicator-btn {
            display: block;
            opacity: 0.48;
            width: 40px;
            height: 4px;
            background-color: #fff;
            cursor: pointer;
            transition: 0.3s;
            &.active {
                opacity: 1;
            }
        }
        .index-banner-item {
            overflow: hidden;
            height: 100%;
            background-repeat: no-repeat;
            background-position: right center;
            color: #fff;
        }
        .index-banner-title {
            font-size: 40px;
            margin-top: 110px;
        }
        .index-banner-text {
            font-size: 20px;
            margin-top: 20px;
        }
    }
    .fade-banner-enter-active {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .fade-banner-enter {
        opacity: 0;
        transform: translateY(40%);
    }
    .fade-banner-leave-active {
        transition: all 0.2s ease-out;
    }
    .fade-banner-leave-to {
        opacity: 0;
    }
}
